
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
        TEST(should be able to set the side of square)
        {
                Square square(2);
                square.setSide(4);
                ASSERT_EQ(16, square.getPerimeter());
        }

        TEST(should be able to calculate the perimeter of square)
        {
                Square square(2);
                ASSERT_EQ(8, square.getPerimeter());
        }

        TEST(should be able to calculate the area of square)
        {
                Square square(2);
                ASSERT_EQ(4, square.getArea());
        }
};

